<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <base href="">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <title>@yield('title')</title>
    <meta name="description" content="s">
    <meta name="keywords" content="s">

    <link rel="stylesheet" href="/assets/b2b/css/themes/common.css">
    <link rel="stylesheet" href="/assets/b2b/css/themes/reset.css">
    <link rel="stylesheet" href="/assets/b2b/css/font-awesome.min.css">
    <link rel="stylesheet" href="/assets/b2b/css/ui-dialog.css">
    <!--[if IE 7]>
    <link rel="stylesheet" href="/assets/b2b/css/font-awesome-ie7.min.css">
    <![endif]-->
    <link rel="stylesheet" href="/assets/b2b/css/hougub2b.css">

    <!-- 通用 JS 库 -->
    <script src="/assets/b2b/js/pageConfig.js"></script>
    <script src="/assets/b2b/js/libs/jquery-1.11.3.min.js"></script>
    <script src="/assets/b2b/js/libs/underscore-min.js"></script>
    <script src="/assets/b2b/js/libs/page/template-util.js"></script>
    <script>
        var COMM_DATA = {
            topObj: {
                createid:"{{ Auth::check() ? Auth::user()->class : '' }}",  //2、采购商  1、供应商
                loginFlag: "{{ Auth::check() ? 1 : 0 }}", // 0：未登录， 1：已登录
                welcome_txt: "欢迎来到咖啡行业供采直通电商平台！",
                login_href: "{{ route('custom.login') }}",
                user_type: "{{ Auth::user() ? Auth::user()->class - 1 : '' }}",
                register_href: "{{  route('custom.login')}}",
                username: "{{ Auth::check() ? Auth::user()->user : '' }}",
                userid: "{{ Auth::check() ? Auth::user()->id : '' }}",
                order_href: "{{ Auth::check()?Auth::user()->class ==2 ? route('account.purchaser.order.index'):route('account.provider.order.index'):''}}",
                buyer_center_href: "{{ route('account.member.home') }}",
                logout_href: "{{ route('custom.logout') }}",
                cart_href:"{{route('cart.cart-list')}}",

            },
            searchObj: $.parseJSON('{!! $heartData !!}'),
            mainNavObj: [{
                href_val: "{{route('host')}}",
                href_txt: "首页",
                new_flag: false
            }, {
                href_val: "{{route('free.list')}}",
                href_txt: "自由集散区",
                new_flag: false
            }, {
                href_val: "{{route('distribution.list')}}",
                href_txt: "供采分销区",
                new_flag: false
            }, {
                href_val: "{{route('provider.list')}}",
                href_txt: "供应报盘",
                new_flag: false
            }, {
                href_val: "{{route('purchaser.list')}}",
                href_txt: "采购询盘",
                new_flag: false
            }, {
                href_val: "{{route('merchant.index')}}",
                href_txt: "商家中心",
                new_flag: false
            }, {
                href_val: "{{ route('industry') }}",
                href_txt: "行业资讯",
                new_flag: false
            }, {
                href_val: "{{route('logistics.index')}}",
                href_txt: "物流服务",
                new_flag: true
            }, {
                href_val: "{{route('financial.index')}}",
                href_txt: "金融服务",
                new_flag: true
            }
            ],

            footNavObj:$.parseJSON('{!! $helpData !!}'),
            footNavObj1:$.parseJSON('{!! $bottomData !!}'),
            bottomObj: $.parseJSON('{!! $bottomData !!}'),
            csrfToken: "{{ csrf_token() }}",
        };
    </script>
    <script type="application/javascript">
        //首页 最上面的切换

        $(".search-type > .item").click(function(){
            $(".search-type > .item").attr("class","item");
            $(this).attr("class","item f-coffee");
            $("#roleid").attr("value","");
            $("#roleid").attr("value",""+$(this).attr("id")+"")


        });

       /* window.onload = function(){
            var oTop = document.getElementById("to_top");
            var screenw = document.documentElement.clientWidth || document.body.clientWidth;
            var screenh = document.documentElement.clientHeight || document.body.clientHeight;
            oTop.onclick = function(){
                document.documentElement.scrollTop = document.body.scrollTop =0;
            }
        }*/
    </script>
    @yield('head')
</head>
<body>

@yield('body')

</body>
</html>